projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b6386
)
system-linux: fix sysfs name for all_ports_active flag
author
Nicolò
<
[email protected]
>
Sun, 4 May 2025 15:22:05 +0000
(17:22 +0200)
committer
Robert Marko
<
[email protected]
>
Sat, 17 May 2025 09:33:16 +0000
(11:33 +0200)
Right now system-linux writes to the wrong file (not existing)
to configure the "all_ports_active" flag for bonding devices.
Write to the correct "bonding/all_slaves_active" path.
Signed-off-by: Nicolò Veronese <
[email protected]
>
Link:
https://github.com/openwrt/netifd/pull/49
Signed-off-by: Robert Marko <
[email protected]
>
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index 8fd0988efa61ce2054c41ae87854d5cd1bd82fee..46b5b9b34819e78caea6aebf033eda8ff062961d 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-1189,7
+1189,7
@@
int system_bonding_set_device(struct device *dev, struct bonding_config *cfg)
system_set_dev_sysfs("bonding/mode", ifname, bonding_policy_str[cfg->policy]);
- system_set_dev_sysfs_int("bonding/all_
port
s_active", ifname, cfg->all_ports_active);
+ system_set_dev_sysfs_int("bonding/all_
slave
s_active", ifname, cfg->all_ports_active);
if (cfg->policy == BONDING_MODE_BALANCE_XOR ||
cfg->policy == BONDING_MODE_BALANCE_TLB ||